<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <script src="../org/angular.min.js"></script>
</head>
<body>

<div ng-app="hd" ng-controller="ctrl">

    <!--排序过滤器-->
    {{order_data|orderBy:'id':false}} <br/>
    {{order_data|orderBy:'click':true}} <hr>

    <!--过滤-->
    {{order_data|filter:'1'}}<br/>
    {{order_data|filter:'后盾人3':true}} <hr>
</div>


<script>
    var m = angular.module('hd', []);
    m.controller('ctrl', ['$scope', function ($scope) {

        $scope.order_data = [
            {id:1, click:100, title: '后盾人1'},
            {id:2, click:200, title: '后盾人2'},
            {id:3, click:300, title: '后盾人3'},
        ];

    }]);
</script>


</body>
</html>

